'use strict';
var sequelize = require('./../models').sequelize;

module.exports = {
  up: function (queryInterface, Sequelize) {
    return sequelize.sync()
      .then(() => console.log('表格创建成功!'));
  },
  down: function (queryInterface, Sequelize) {
    return queryInterface.dropTable('organizations')
      .then(() => queryInterface.dropTable('teams'))
      .then(() => queryInterface.dropTable('team_users'))
      .then(() => queryInterface.dropTable('roles'));
  }
};
